home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Borland / Borland C++ V5.02 / AUTOCK3.PAK / CLIKPNT.H < prev    next >
C/C++ Source or Header  |  1997-05-06  |  2KB  |  60 lines

  1. // ClikPnt.h : header file
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1995 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13.  
  14.  
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CAutoClickPoint command target
  17.  
  18. class CAutoClickPoint : public CCmdTarget
  19. {
  20.     DECLARE_DYNCREATE(CAutoClickPoint)
  21.  
  22.     CAutoClickPoint();           // protected constructor used by dynamic creation
  23.  
  24. // Attributes
  25. public:
  26.  
  27. // Operations
  28. public:
  29.     CPoint GetClickPoint() { return CPoint(m_x, m_y); }
  30.     void SetClickPoint(CPoint point) { m_x = (short)point.x; m_y = (short)point.y; }
  31.  
  32. // Overrides
  33.     // ClassWizard generated virtual function overrides
  34.     //{{AFX_VIRTUAL(CAutoClickPoint)
  35.     public:
  36.     virtual void OnFinalRelease();
  37.     //}}AFX_VIRTUAL
  38.  
  39. // Implementation
  40. protected:
  41.     virtual ~CAutoClickPoint();
  42.  
  43.     // Generated message map functions
  44.     //{{AFX_MSG(CAutoClickPoint)
  45.         // NOTE - the ClassWizard will add and remove member functions here.
  46.     //}}AFX_MSG
  47.  
  48. public:
  49.     DECLARE_MESSAGE_MAP()
  50.     // Generated OLE dispatch map functions
  51.     //{{AFX_DISPATCH(CAutoClickPoint)
  52.     short m_x;
  53.     short m_y;
  54.     //}}AFX_DISPATCH
  55.     DECLARE_DISPATCH_MAP()
  56.     DECLARE_INTERFACE_MAP()
  57. };
  58.  
  59. /////////////////////////////////////////////////////////////////////////////
  60.